﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberPackageModify.aspx.cs" Inherits="bianzhuo.SupportPlatform.BzBusiness.MemberPackageModify" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商家管理</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/input_ck.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="js/tdcolor.js" type="text/javascript"></script>
    <script src="../Control/DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="content">
            <ul class="breadcrumb">
                <li><a href="#">首页</a> <span class="divider">/</span></li>
                <li class="active">会员卡套餐设置</li>
            </ul>
            <div class="container">
                <div class="member_div">
                    <ul>
                        <li>
                            <div class="mem_dbg mem_dbg01 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="UserCardModify.aspx?MicroId=<%=Request["MicroId"]%>">会员卡设置</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg02 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="MemberClassDefault.aspx?MicroId=<%=Request["MicroId"]%>">会员卡等级</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg03"></div>
                            <div class="mem_dtit"><a class="mem_dth" href="MemberPackageDefault.aspx?MicroId=<%=Request["MicroId"]%>">会员卡套餐</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg04 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="MemberPromotionDefault.aspx?MicroId=<%=Request["MicroId"]%>">会员促销活动</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg05 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="UserInfoDefault.Aspx?MicroId=<%=Request["MicroId"]%>">会员管理</a></div>
                        </li>

                        <li>
                            <div class="mem_dbg mem_dbg06 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="PointProManager/PointProductTypeManager.aspx">积分商城</a></div>
                        </li>

                    </ul>
                </div>
                <div>

                    <table class="user_list" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <th colspan="2" align="left" class="border_left">添加会员套餐</th>
                        </tr>

                        <tr>
                            <td height="30" align="right" class="border_left">套餐名称</td>
                            <td height="30" align="left">
                                <div class="lmlx_inf">&nbsp;<input id="pkgName" type="text" class="input_text" runat="server" /><span class="tips">会员套餐名称</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="border_left">套餐有效期</td>
                            <td height="30" align="left">
                                <div class="lmlx_inf">&nbsp;<input id="pkgValidityDays" type="text" class="input_text10" data-type="int" runat="server" value="0" /><span class="tips">天</span><span class="tips"><font>0</font>表示不限</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="border_left">套餐服务</td>
                            <td height="30" align="left">
                                <div class="lmlx_inf">&nbsp;<input id="pkgServiceNumber" type="text" class="input_text10" data-type="int" runat="server" value="0" /><span class="tips">数量&nbsp;<font>0</font>表示不限</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="pkgServiceUnit" class="input_text11" runat="server" /><span class="tips">单位</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="border_left">获得积分</td>
                            <td height="30" align="left">
                                <div class="lmlx_inf">&nbsp;<input id="pkgGiftPoints" type="text" class="input_text8" data-type="int" runat="server" value="0" /><span class="tips">购买该套餐所奖励积分</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="border_left">&nbsp;套餐价格</td>
                            <td height="30" align="left">
                                <div class="lmlx_inf">&nbsp;<input id="pkgPrice" type="text" data-type="float" class="input_text8" runat="server" value="0" /><span class="tips">元</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="border_left">
                                <button type="submit" class="btn btn-01" id="save" name="save">确定添加</button>&nbsp;&nbsp;&nbsp;&nbsp;
                                 <button type="button" class="btnhs" onclick="history.go(-1);">取消返回</button></td>
                        </tr>
                    </table>


                </div>
            </div>
        </div>


    </form>

    <script>
        $(':text').focus(function () {
            $(this).next('.tips').show();
        }).blur(function () {
            if ($.trim($(this).val()) == "" || ($(this).attr('data-type') == 'int' && isNaN(parseInt($(this).val()))) || ($(this).attr('data-type') == 'float' && isNaN(parseFloat($(this).val())))) {
                $(this).next('.tips').addClass('tip_er').removeClass('tip_ok');
            } else {
                $(this).next('.tips').removeClass('tip_er').addClass('tip_ok');
            }
        });
        $(function () {
            $('form').submit(function () {
                var err = 0
                $(':text').each(function () {
                    if ($.trim($(this).val()) == "" || ($(this).attr('data-type') == 'int' && isNaN(parseInt($(this).val()))) || ($(this).attr('data-type') == 'float' && isNaN(parseFloat($(this).val())))) {
                        $(this).focus().next('.tips').addClass('tip_er').removeClass('tip_ok');
                        err++;
                        return false;
                    }
                })
                if (err > 0) return false;
            });
        });
    </script>
</body>
</html>
